package com.cskaoyan.service.impl;

import com.cskaoyan.mapper.MarketGrouponRulesMapper;
import com.cskaoyan.model.MarketGrouponRules;
import com.cskaoyan.service.GrouponRulesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: Project2-Code
 * @BelongsPackage: com.cskaoyan.service.impl
 * @Author: yu
 * @email: 3188480992@qq.com
 * @CreateTime: 2024-06-14  09:04
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class GrouponRulesServiceImpl implements GrouponRulesService {

    @Autowired
    MarketGrouponRulesMapper grouponRulesMapper;

    @Override
    public MarketGrouponRules findById(Integer grouponRulesId) {
        MarketGrouponRules grouponRules = grouponRulesMapper.selectByPrimaryKey(grouponRulesId);
        return grouponRules != null ? grouponRules : new MarketGrouponRules();
    }
}
